Skip to content

Window traits clear color#1668

Closed
paveltrpn wants to merge 2 commits intovsg-dev:masterfrom
paveltrpn:window_traits_clear_color
Closed

Window traits clear color#1668
paveltrpn wants to merge 2 commits intovsg-dev:masterfrom
paveltrpn:window_traits_clear_color

Conversation

@paveltrpn
Copy link

@paveltrpn paveltrpn commented Jan 31, 2026

Add clear color field to WindowTraits and use it as window clear color.

Description

I recently start using VulkanSceneGraph and did not find any way to change clear color of the window.
This PR add corresponding field to WindowTraits and force to use it as window background clear color.
Default value of clear color stays same as before.

Additionally i add .qtcreator folder (QtCreator setting folder starts from 19.0) to .gitignore file.

@robertosfield
Copy link
Collaborator

robertosfield commented Jan 31, 2026

FYI, to set the clear colour of a window you simply set via the window->clearColor() method i.e.

windowColor->clearColor().set(r,g,b,a);

@robertosfield
Copy link
Collaborator

I'm going to close this PR as Window::clearColor().set(r,g,b,a) is sufficient already and adding extra control into WindowTraits would leave it open to getting out of sync.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants